/*
 * @Author: Leng
 * @Date: 2021-03-24 14:11:53
 * @Description: 公共
 * @FilePath: \vue-leng-demo\src\router\modules\common.ts
 */

import Layout from '@/layout/index.vue'
import SvgData from '@/components/common/SvgData.vue'
import InvoiceItem from '@/components/common/InvoiceItem.vue'
import loginCard from '@/components/common/loginCard.vue'

const common = [
  {
    path: '/common',
    component: Layout,
    redirect: '/common/crudTable',
    meta: { title: '公共', icon: 'el-icon-document-copy' },
    alwayShow: true,
    children: [
      {
          path: 'SvgData',
          name: 'SvgDataName',
          component: SvgData,
          meta: { title: 'Svg', cache: false, roles: ['admin', 'editor'] }
      },
      {
        path: 'invoice',
        name: 'invoiceName',
        component: InvoiceItem,
        meta: { title: '发票', cache: true, roles: ['admin'] }
      },
      {
        path: 'loginCard',
        name: 'loginCardName',
        component: loginCard,
        meta: { title: '登录', cache: true, roles: ['admin'] }
      }
    ]
  }
]

export default common